package com.songqintuan.common.page;

import javax.faces.model.SelectItem;
import com.songqintuan.common.bean.Page;

public class PojoPage<T,PK> {
	private Page<T,PK> page;
	private SelectItem[] pageItems = null ;
	private Integer pageSize ;
	private Integer pageNo ;
	private T param;//except status

	public Page<T, PK> getPage() {
		return page;
	}
	public void setPage(Page<T, PK> page) {
		this.page = page;
	}
	
	public SelectItem[] getPageItems() {
		return pageItems;
	}
	private static SelectItem[] pageSizeItems = {
		new SelectItem(new Long(5),"5"),
		new SelectItem(new Long(10),"10"),
	};
	public SelectItem[] getPageSizeItems() {
		return pageSizeItems;
	}

	@SuppressWarnings("static-access")
	public void setPageSizeItems(SelectItem[] pageSizeItems) {
		this.pageSizeItems = pageSizeItems;
	}
	public void setPageItems(SelectItem[] pageItems) {
		this.pageItems = pageItems;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getPageNo() {
		return pageNo;
	}
	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}
	public T getParam() {
		return param;
	}
	public void setParam(T param) {
		this.param = param;
	}
}
